package com.springmvc.stduy.controller;

import com.springmvc.stduy.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;
import java.util.HashMap;
import java.util.Map;

/**
 * @author: 若若叶
 * @date: 2021/9/24 14:42 FileName: UserController Description:
 */
@Controller
public class UserController {
  @RequestMapping("/user1")
  public void user(HttpSession session) {
    User uuser = (User) session.getAttribute("uuser");
    Integer uid = (Integer) session.getAttribute("uid");
    System.out.println(uuser);
    System.out.println(uid);
  }
}
